home *** CD-ROM | disk | FTP | other *** search
- on(release){
- if(_root.gooddomain == 1 and pname.length > 0)
- {
- encryptdata = random(300) + "&" + escape(_root.player[1].score) + "&" + escape(pname);
- key = "xX2&+-oeER2ll@WopOiP438901";
- encryptchars = "724xw?!@$-{A609By%^()DE8Q1TgabYcdSUVW&*XZf5ehijkl_+mnoFGHIJKLN=:;~OCMRPpqrsz.,/3tuv}\'";
- chars = encryptchars.split("");
- ki = key.split("");
- keylength = key.length;
- echars = encryptchars.length;
- convert = new Array();
- c2 = 0;
- line = 0;
- while(line < ki.length)
- {
- fr = "";
- bk = "";
- c2 += ord(ki[line]);
- while(c2 > echars)
- {
- c2 -= echars;
- }
- c = 0;
- while(c < echars)
- {
- if(c < c2)
- {
- bk += chars[c];
- }
- else
- {
- fr += chars[c];
- }
- c++;
- }
- convert[line] = fr + bk;
- trace(convert[line] + " ---" + c2);
- line++;
- }
- if(encryptdata.length > 0)
- {
- score = "";
- trace("Encrypting \'encryptdata\'");
- boggle = encryptdata.split("");
- matrix = 0;
- out = 0;
- while(out < encryptdata.length)
- {
- c = 0;
- while(c < echars)
- {
- if(boggle[out] == chars[c])
- {
- replace = convert[matrix].split("");
- boggle[out] = replace[c];
- c = echars + 10;
- matrix++;
- if(matrix >= keylength)
- {
- matrix = 0;
- }
- }
- c++;
- }
- score += boggle[out];
- out++;
- }
- }
- convert = undefined;
- encryptdata = undefined;
- key = undefined;
- encryptchars = undefined;
- chars = undefined;
- boggle = undefined;
- replace = undefined;
- fr = undefined;
- bk = undefined;
- ki = undefined;
- _root.player = undefined;
- _root.wall = undefined;
- getURL("http://www.psychogoldfish.com/snakes/snake_scores.php","_blank","POST");
- _root.gotoAndPlay(1);
- }
- if(_root.gooddomain != 1)
- {
- _root.share.play();
- }
- }
-